package com.goodwill.androidtest.annotation;

import android.app.Activity;
import android.view.View;

public class ViewFindder {

    private static Activity mActivity;
    private static View mView;

    public ViewFindder(Activity activity) {
        mActivity = activity;
    }

    public ViewFindder(View view) {
        mView = view;
    }

    public static View findViewById(int viewId) {
        return mActivity != null ? mActivity.findViewById(viewId) : mView.findViewById(viewId);
    }
}
